image {
   resolution 800 600
   aa 0 0
   samples 1
   contrast 0.1
   filter gaussian
   jitter false
}

camera {
   type 	pinhole
   eye 		0 0 10
   target	0 0 0
   up 		0 1 0
   fov 		60 
   aspect 	1.333
}

light {
   type point
   color { "sRGB nonlinear" 0.256 0.865 0.10 }
   power 70.0
   p 12.0 5.0 6.0
}

shader {
   name red
   type phong
   diff { "sRGB nonlinear" 0.200 0.600 0.800 }
   spec { "sRGB nonlinear" 1.000 1.000 1.000 } 50
   samples 4
}


shader {
   name green
   type constant
   color { "sRGB nonlinear" 0 1 0 }
}

shader {
   name blue
   type constant
   color { "sRGB nonlinear" 0 0 1 }
}

shader {
   name yellow
   type constant
   color { "sRGB nonlinear" 0 1 1 }
}

shader {
   name white
   type constant
   color { "sRGB nonlinear" 1 1 1 }
}

shader {
   name black
   type constant
   color { "sRGB nonlinear" 0 0 0 }
}

shader {
   name sfpho.shader
   type phong
   diff { "sRGB nonlinear" 0.200 0.600 0.800 }
   spec { "sRGB nonlinear" 1.000 1.000 1.000 } 50
   samples 4
}

object {

   shader red
   type generic-mesh 

   name cube_center

   points 8
1 0 1
1 2 1
-1 2 1
-1 0 1
1 0 -1
1 2 -1
-1 2 -1
-1 0 -1

   triangles 12
0 1 2
0 2 3
0 1 5
0 4 5
1 2 6
1 5 6
3 2 6
3 6 7
0 3 7
0 7 4
4 7 6
4 5 6

   normals none
   uvs none
}


object {

   shader red

   transform {
     translate 5 0 0
   }


   type generic-mesh 

   name cube_right

   points 8
1 0 1
1 2 1
-1 2 1
-1 0 1
1 0 -1
1 2 -1
-1 2 -1
-1 0 -1

   triangles 12
2 1 0
3 2 0
5 1 0
5 4 0
6 2 1
6 5 1
6 2 3
7 6 3
7 3 0
4 7 0
6 7 4
6 5 4

   normals none
   uvs none
}

object {

   shader red

   transform {
     translate -5 0 0
   }

   type generic-mesh 

   name cube_left

   points 8
1 0 1
1 2 1
-1 2 1
-1 0 1
1 0 -1
1 2 -1
-1 2 -1
-1 0 -1

   triangles 12
0 1 2
0 2 3
0 1 5
0 4 5
1 2 6
1 5 6
3 2 6
3 6 7
0 3 7
0 7 4
4 7 6
4 5 6

   normals none
   uvs none
}

object {
   shader green
   type sphere
   name sphere_1
   c -2.5 1 0
   r 1
}

object {
   shader blue
   type sphere
   name sphere_2
   c 2.5 1 0
   r 1
}
